#ifndef QTRASHWINDOW_H
#define QTRASHWINDOW_H

#include <MApplicationWindow>
#include "ui/MTrashWindow.h"
#include "QvernoteWindow.h"
#include "QvernoteAPI.h"
#include <MButton>
#include <MLabel>

class QTrashWindow : public QvernoteWindow
{
    Q_OBJECT

public:
    QTrashWindow(MApplicationPage *parent = 0);
    ~QTrashWindow();

    void loadNotesIntoView();
    void showEvent(QShowEvent*) {
    	loadNotesIntoView();
    }

public slots:
	void setItemMark(const QModelIndex &);
	void deleteSelectedNotes();
	void restoreSelectedNotes();
	void addSelectedCount() { m_lSelectedCount.setText(QString(trUtf8("%1 notes")).arg(++m_iSelectedCount)); }
	void subSelectedCount() { m_lSelectedCount.setText(QString(trUtf8("%1 notes")).arg(--m_iSelectedCount)); }

private:
	Ui::QTrashWindowClass ui;
	QvernoteAPI* m_hEvernote;
	MLabel	m_lSelectedCount;
	MButton m_pbDeleteSelected;
	MButton m_pbRestoreSelected;
	int		m_iSelectedCount;
	MApplicationPage* m_parent;
};

#endif // QTRASHWINDOW_H
